package com.toKnow.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class RouterController {
  @RequestMapping("/")
  public String welcome(){
    return "index";
  }

  @RequestMapping("/index")
  public String index1() { return "index"; }

  @RequestMapping("/index/**")
  public String index2() { return "index"; }

  @RequestMapping("/search/**")
  public String search() {
    return "index";
  }

  @RequestMapping("/user/**")
  public String user() {
    return "index";
  }

  @RequestMapping("/article/**")
  public String article() {
    return "index";
  }

  @RequestMapping("/author/**")
  public String author() {
    return "index";
  }

  @RequestMapping("/source/**")
  public String source() {
    return "index";
  }

  @RequestMapping("/publish/**")
  public String publish() {
    return "publish";
  }

  @RequestMapping("/creator/**")
  public String creator() {
    return "creator";
  }
}
